//
//  DataHandle.h
//  doubanMovie
//
//  Created by lanou3g on 15/11/21.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class MovieList;
@class MovieDetail;
@class CinemaModel;

typedef void(^ReloadBlock)();
typedef void(^ValueBlock)(MovieDetail *);
@protocol dataHandleDelegate <NSObject>

@optional
- (void)reLoad;

@end


@interface DataHandle : NSObject


@property (nonatomic,strong) NSMutableArray *arrMovieDetil;
@property (nonatomic,strong) NSMutableArray *arrMovieList;
@property (nonatomic,strong) NSMutableArray *arrCinema;

@property (nonatomic,weak) id<dataHandleDelegate> delegtate;
+ (DataHandle *)sharedInstance;
- (void)getDataSourceWithReloadBlack:(ReloadBlock)block;
- (void ) movieID:(NSString *)movieIDStr ReloadBlack:(ValueBlock)block;
- (void)getCinemaDataSourceReloadBlack:(ReloadBlock)block;
//获取分组数
- (NSInteger)rowOfMovie;
//获取某个电影详情对象
- (MovieDetail *)movieDetailForIndexPath:(NSIndexPath *)indexPath;
#pragma mark - 获取影院数量
- (NSInteger)rowOfCinema;


#pragma mark - 获取某个影院详情对象
- (CinemaModel *)cinemaModerForIndexPath:(NSIndexPath *)indexPath;
@end
